<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:general="http://java.sun.com/jsf/composite/general"
      template="/templates/template.xhtml">

<ui:define name="main" >	
				
			<h:messages styleClass="error"></h:messages>
	<h:form>

<table class="tabledata">
<tr>
	<th colspan="2">#{i18n.nuevaVersion_control_entrega}</th>
</tr>
<tr>
	<td class="tddatafield"><h:outputLabel value="#{i18n.nuevaVersion_f_ini}"></h:outputLabel></td>
	<td class="tddatavalue"><h:inputText id="fechaInicio" value="#{versionBean.version.fechaInicio}" type="Date" converterMessage="#{i18n.nuevaVersion_f_ini_converter}"><f:convertDateTime dateStyle="short" type="date"/></h:inputText>
	<h:messages for="fechaInicio" styleClass="error"> </h:messages></td>
	 
</tr>
<tr>
	<td><h:outputLabel value="#{i18n.nuevaVersion_f_pru}"></h:outputLabel></td>
	<td><h:inputText id="feEntregaPruebas" value="#{versionBean.version.feEntregaPruebas}" type="Date" converterMessage="#{i18n.nuevaVersion_f_pru_converter}"><f:convertDateTime dateStyle="short" type="date"/></h:inputText>
	<h:messages for="feEntregaPruebas" styleClass="error"> </h:messages></td>
	
</tr>
<tr>
	<td><h:outputLabel value="#{i18n.nuevaVersion_f_pri_ent}"></h:outputLabel></td>
	<td><h:inputText id="fechaPrimeraEntrega" value="#{versionBean.version.fechaPrimeraEntrega}" type="Date" converterMessage="#{i18n.nuevaVersion_f_pri_ent_converter}"><f:convertDateTime dateStyle="short" type="date"/></h:inputText>
	<h:messages for="fechaPrimeraEntrega" styleClass="error"> </h:messages></td> 
</tr>
<tr>
	<td><h:outputLabel value="#{i18n.nuevaVersion_f_ult_ent} "></h:outputLabel></td>
	<td><h:inputText id="fechaUltimaEntrega" value="#{versionBean.version.fechaUltimaEntrega}" type="Date" converterMessage="#{i18n.nuevaVersion_f_ult_ent_converter}"><f:convertDateTime dateStyle="short" type="date"/></h:inputText>
	<h:messages for="fechaUltimaEntrega" styleClass="error"> </h:messages></td> 
</tr>
<tr>
	<td>	<h:outputLabel value="#{i18n.nuevaVersion_f_pro}"></h:outputLabel></td>
	<td><h:inputText id="fechaProduccion" value="#{versionBean.version.fechaProduccion}" type="Date" converterMessage="#{i18n.nuevaVersion_f_pro}"><f:convertDateTime dateStyle="short" type="date"/></h:inputText>
	<h:messages for="fechaProduccion" styleClass="error"> </h:messages></td> 
</tr>
<tr>
	<td><h:outputLabel value="#{i18n.nuevaVersion_pte_ent} "></h:outputLabel></td>
	<td><h:selectBooleanCheckbox   value="#{versionBean.version.pteEntregar}" onselect=""></h:selectBooleanCheckbox> 
	<span style="display:none" id="observacionesPteEntregar">
		Por <h:inputText style="display:none" value="#{versionBean.version.obsPteEntregar}" size="30" maxlength="1024"></h:inputText>
	</span>
	</td>
</tr>
</table>

<table class="tabledata">
<tr>
<th colspan="2">	<h:outputFormat value="#{i18n.nuevaVersion_avance_semanal}" >
		<f:param value="#{versionBean.version.fechaUltimoAvance ==null?'':versionBean.version.fechaUltimoAvance}" />
	</h:outputFormat>
</th>	
</tr>
<tr>
	
	<td class="tddatafield"><h:outputLabel value="#{i18n.nuevaVersion_avance_externo}"></h:outputLabel></td>
	<td class="tddatavalue"><h:inputTextarea value="#{versionBean.version.ultAvanceExterno}" ></h:inputTextarea></td>
</tr>
<tr>
	<td><h:outputLabel value="#{i18n.nuevaVersion_avance_interno} "></h:outputLabel></td>
	<td><h:inputTextarea value="#{versionBean.version.ultAvanceInterno}"></h:inputTextarea></td>
</tr>
<tr>
	<td><h:outputLabel value="#{i18n.nuevaVersion_avance_rv}"></h:outputLabel></td>
	<td><h:inputTextarea value="#{versionBean.version.ultAvanceRV}"></h:inputTextarea></td>
</tr>
</table>

<h:commandButton value="#{i18n.nuevaVersion_grabar}" action="#{versionController.grabarVersion}"></h:commandButton>

</h:form>

</ui:define></ui:composition>





